if ( (i != str.length - 1) && (str.charAt(i) == "%") )
{
newStr += this.convertJ(str.substring(i, i + 6));
i += 5;
}
else
newStr += str.charAt(i);
}
}
else
newStr = str;
return newStr;
}
function convert_j_num(num)
{
if (num == "%uFF10")
return "0";
else if (num == "%uFF11")
return "1";
else if (num == "%uFF12")
return "2";
else if (num == "%uFF13")
return "3";
else if (num == "%uFF14")
return "4";
else if (num == "%uFF15")
return "5";
else if (num == "%uFF16")
return "6";
else if (num == "%uFF17")
return "7";
else if (num == "%uFF18")
return "8";
else if (num == "%uFF19")
return "9";
else
return "0";
}
function RangeObj(obj)
{
this.delim = "-";
this.eName = "range";
this.jdelim = "%u30FC";
this.max = "-max";
this.skip = "-skip";
this.icount = parseInt(obj.vcount);
this.ifound = parseInt(obj.vfound);
this.imax = parseInt(obj.vmax);
this.irecnum = parseInt(obj.vrecnum);
this.iskip = parseInt(obj.vskip);
this.convertJ = convert_j_num;
this.normalize = normalize_number;
this.show = find_range;
this.update = update_range;
}
/* IWPHelp object definition */
function IWPHelp()
{
this.delRec = "deleting";
this.edit = "editing";
this.form = "form";
this.newRec = "adding";
this.search = "searching";
this.sort = "sorting";
this.table = "table";
this.fhelp = "~HelpCSS.htm#";
}
/* IWPData object definition */
function IWPData()
{
this.adb = "-db=";
this.adel = "-delete";
this.aerror = "-error=";
this.afind = "-find";
this.afindall = "-findall";
this.aformat = "-format=";
this.alay = "-lay=";
this.alop = "-lop=";
this.amax = "-max=";
this.amp = "&";
this.amshack = "-mshack=";
this.aop = "-op=";
this.arecid = "-recid=";
this.askip = "-skip=";
this.atok = "-token.0=";
this.atok1 = "-token.1=";
this.aview = "-view";
this.bang = "!&";
this.fclassictable = "~TableVw.htm&";
this.fdel = "~DeleteCSS.htm&";
this.fedit = "~EditCSS.htm&";
this.ferror = "~Err.htm&";
this.fform = "~FormVwCSS.htm&";
this.fmp = "FMPro?";
this.fnew = "~NewCSS.htm&";
this.fredirf = "~RedirFormCSS.htm&";
this.fsearch = "~SearchCSS.htm&";
this.fsort = "~SortCSS.htm&";
this.ftable = "~TableVwCSS.htm&";
this.ftxttable = "~TableVwTxt.htm&";
this.home = "/";
this.one = "1&";
}
/* IWPLinks object definition */
function IWPLinks()
{
this.classic = new Array("fmp","adb","vdb","alay","vlayt","atok","vtok","aformat","fclassictable","vaction");
this.delBack = new Array("fmp","adb","vdb","alay","vlay","sort","find","alop","vlop","amax","vmax","askip","vskip","atok","vtok","atok1","vtok1","aformat","fform","afind");
this.delRec = new Array("fmp","adb","vdb","alay","vlay","sort","find","alop","vlop","amax","vmax","askip","vskip","atok","vtok","atok1","vtok1","aformat","fdel","amshack","vid","afind");
this.delRec2 = new Array("fmp","adb","vdb","alay","vlay","sort","find","alop","vlop","amax","vmax","atok","vtok","atok1","vtok1","aformat","fredirf","aerror","ferror","arecid","vid","adel");
this.edit = new Array("fmp","adb","vdb","alay","vlay","sort","find","alop","vlop","amax","vmax","askip","vskip","atok","vtok","atok1","vtok1","aformat","fedit","afind");
this.findall = new Array("fmp","adb","vdb","aformat","vformat","alay","vlay","sort","amax","vmax","atok","vtok","atok1","vtok1","afindall");
this.findall2 = new Array("fmp","adb","vdb","aformat","ftable","alay","vlay","sort","amax","vtokmax","atok","vtok","atok1","vtok1","afindall");
this.first = new Array("fmp","adb","vdb","aformat","vformat","alay","vlay","sort","find","alop","vlop","askip","bang","amax","vmax","atok","vtok","atok1","vtok1","afindall");
this.form = new Array("fmp","adb","vdb","sort","find","alop","vlop","askip","vskip","aformat","fform","aerror","ferror","alay","vlayf","amax","one","atok","vtokmax","atok1","vtok1","afind");
this.home = new Array("home");
this.last = this.first;
this.newRec = new Array("fmp","adb","vdb","sort","find","alop","vlop","amax","vmax","askip","vskip","aformat","fnew","alay","vlayf","atok","vtokmax","atok1","vtok1","afind");
this.next = this.first;
this.previous = this.first;
this.recLink = new Array("fmp","adb","vdb","sort","find","alop","vlop","aformat","fform","alay","vlayf","amax","one","askip","bang","atok","vmax","atok1","vtok1","afind");
this.search = new Array("fmp","adb","vdb","sort","find","alop","vlop","askip","vskip","aformat","fsearch","alay","vlays","amax","one","atok","vtokmax","atok1","vtok1","aview");
this.sort = new Array("fmp","adb","vdb","sort","find","alop","vlop","amax","vmax","askip","vskip","atok","vtok","atok1","vtok1","aformat","fsort","alay","vlayt","afind");
this.table = new Array("fmp","adb","vdb","sort","find","alop","vlop","askip","vskip","aformat","ftable","aerror","ferror","alay","vlayt","amax","vtokmax","atok","vtok","atok1","vtok1","afind");
this.textonly = new Array("fmp","adb","vdb","alay","vlayt","atok","vtok","aformat","ftxttable","vaction");
}
/* IWPObj object definition */
function check_browser()
{
var version = parseFloat(navigator.appVersion);
if (navigator.appName.indexOf("Netscape") != -1)
{
if ( version < 5.0 )
{
if ( version < 3.0 )
this.go("classic");
else
this.go("textonly");
}
}
else if (navigator.appName.indexOf("Microsoft") != -1)
{
if ( version < 4.0 )
{
if ( version < 3.0 )
this.go("classic");
else
this.go("textonly");
}
}
return false;
}
function set_layout(lay)
{
if ( lay != null )
{
this.data.vtok1 = escape(lay) + this.data.amp;
this.data.vlayf = this.data.vtok1;
var url = this.build("form");
window.location=url;
}
}
function build_url(code)
{
var url = "";
if ( code == this.ctoggle )
{
if ( this.data.vformat.toLowerCase().indexOf(this.ohelp.table) > -1 )